﻿{% extends "gma/base.html" %}
{% load mytag %}

<!-- CONTENT
  =====================================================================-->

{% block content %}

<div class="page__bd">
    <div class="weui-cells__title">基本数据</div>
    <div class="weui-cells">
        {% if user.avatar %}
        <a class="weui-cell weui-cell_access" href="{% url 'gma:gallery' user.avatar %}">
            <div class="weui-cell__bd"> <p>头像</p> </div>
            <div class="weui-cell__ft"> <img src="{{ user.avatar|cdn }}" class="right_large_avatar"> </div>
        </a>
        {% endif %}

        <div class="weui-cell">
            <div class="weui-cell__bd"> <p>用户id</p> </div>
            <div class="weui-cell__ft">{{ user.id }}</div>
        </div>
    </div>

    <div class="weui-cells__title"> RAW数据 </div>
    <div class="weui-cells">
        {% for k, v in user_raw_data %}
        <div class="weui-cell">
            {% if k != 'index_' %}
            <div class="weui-cell__bd"> <p> {{ k }} </p> </div>
            <div class="weui-cell__ft"> {{ v }} </div>
            {% endif %}
        </div>
        {% endfor %}
    </div>

    <div class="weui-cells__title"> RAW认证数据 </div>
    <div class="weui-cells">
        {% for k, v, t in auth_raw_data %}
        <div class="weui-cell">
            {% if t == 'textarea' %}
            <div class="weui-cell__bd">
                <textarea class="weui-textarea" placeholder="{{ k }}" rows="10">{{ k }}: {{ v }}</textarea>
            </div>
            {% else %}
            <div class="weui-cell__bd"> <p> {{ k }} </p> </div>
            <div class="weui-cell__ft"> {{ v }} </div>
            {% endif %}
        </div>
        {% endfor %}
    </div>
</div>

<div class="page__ft">
    <a href="{% url 'gma:home' %}">
        <span class="bottom-logo">
           HiBao
       </span>
    </a>
</div>

{% endblock content %}

<!-- SCRIPT
  =====================================================================-->

{% block extra_js %}

{% endblock extra_js %}